<html>
<head><meta charset="utf-8"><title>trying to tackle bindings_after_at issue · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/trying.20to.20tackle.20bindings_after_at.20issue.html">trying to tackle bindings_after_at issue</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215204667"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/trying%20to%20tackle%20bindings_after_at%20issue/near/215204667" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> vn-ki <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/trying.20to.20tackle.20bindings_after_at.20issue.html#215204667">(Oct 31 2020 at 18:22)</a>:</h4>
<p>I've been trying to tackle to tackle <a href="https://github.com/rust-lang/rust/issues/69971">https://github.com/rust-lang/rust/issues/69971</a>.</p>
<p>Right now, the bindings in <code>@</code> pat occur from right to left. This make </p>
<div class="codehilite"><pre><span></span><code>    let y @ NonCopyStruct { copy_field: z } = x;
</code></pre></div>
<p>into</p>
<div class="codehilite"><pre><span></span><code>    let y = x;
    let NonCopyStruct { copy_field: z } = x;
</code></pre></div>
<p>I've fixed this by reversing the binding order for matches. While this seems to fix the issue, my question is whether this is a valid fix (as in this does not go against the language semantics)?</p>



<a name="215207971"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/trying%20to%20tackle%20bindings_after_at%20issue/near/215207971" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/trying.20to.20tackle.20bindings_after_at.20issue.html#215207971">(Oct 31 2020 at 19:30)</a>:</h4>
<p>Maybe ask in <a class="stream" data-stream-id="213817" href="/#narrow/stream/213817-t-lang">#t-lang</a>?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>